<script type="text/template" id="posts-temp">
{{each postList}}
<tr>
    <td>{{$value.title}}</td>
    <td>{{$value.author.nickName}}</td>
    <td>{{$value.category.title}}</td>
    <td class="text-center">{{$value.createAt}}</td>
    <td class="text-center">{{$value.state===1?"已发布":"草稿"}}</td>
    <td class="text-center">
        <a href="#" class="btn btn-default btn-xs">编辑</a>
        <a href="#" class="btn btn-danger btn-xs">删除</a>
    </td>
</tr>
{{/each}}
</script>